const path = require('path');
const webpack = require('webpack');
module.exports = {
    entry:{
        vendors:['react','react-dom']
    },
    output:{
        filename:'[name].dll.js',
        path:path.join(__dirname,'build/dll'),
        library:'[name]_dll_[hash]'
    },
    plugins:[
        new webpack.DllPlugin({
            name:'[name]_dll_[hash]',
            path:path.join(__dirname,'build/dll','[name].manifest.json')
        })
    ]
}